<template>
  <el-container>
    <el-aside width="auto"><NavMenu></NavMenu></el-aside>
    <el-container>
      <el-header style="height:auto"><Head></Head></el-header>
      <el-main><router-view></router-view></el-main>
      <!-- <el-footer>Footer</el-footer> -->
    </el-container>
  </el-container>
</template>

<script>
import NavMenu from './NavMenu'
import Head from './Head'
import Home from '../pages/Home'
export default {
    components:{
        NavMenu,
        Head,
        Home
    }
};
</script>

<style lang="less" scoped>
*{
  margin: 0;
  padding: 0;
}
.el-header,
.el-footer {
  background-color: #fff;
  box-shadow: 2px 10px 2px 2px rgb(189, 182, 182);
  color: #333;
  text-align: center;
  line-height: .5rem;
  
}
.el-header{
  border-bottom: #e5e7e7 2px solid;
}
.el-footer{
  background-color: #e0e0e0;
  height: 0rem;
}
.el-aside {
  margin:0;
}

.el-main {
  background-color: #fbf9f9;
  color: #333;
  padding: 20px 5px;
  overflow: hidden;
  
}

body > .el-container {
  margin-bottom: .5rem;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 3.25rem;
}

.el-container:nth-child(7) .el-aside {
  line-height: 4rem;
}

</style>